<?php



defined('IN_MAIN') or exit('Invalid Access!');







ini_set('memory_limit', '2048M');



set_time_limit(6000);







//#####files



$_file["admin"]["member_list"]="member_list.php";

$_file["admin"]["add_edit_member"]="member_ae.php";

$_file["admin"]["sales_list"]="sales_list.php";

$_file["admin"]["add_edit_sales"]="sales_ae.php";

$_file["admin"]["product_list"]="prod_list.php";

$_file["admin"]["add_edit_product"]="prod_ae.php";

$_file["admin"]["product_category_list"]="cat_list.php";

$_file["admin"]["add_edit_product_category"]="cat_ae.php";

$_file["admin"]["genealogy"]="genealogy.php";

$_file['admin']['export_genealogy']='export_genealogy.php';



$_file['member']['index']='index.php';

$_file['member']['profile']='profile.php';

$_file['member']['desk']='desk.php';

$_file['member']['volume']='volume.php';

$_file['member']['level']='level.php';

$_file['member']['ep_management']='ep_management.php';

$_file['member']['activate']='activate.php';

$_file['member']['purchase']='purchase.php';

$_file["member"]["genealogy"]="genealogy.php";

$_file['member']['network']='matrix.php';

$_file['member']['export_genealogy']='export_genealogy.php';

$_file['member']['placement']='placement.php';

$_file["member"]["register"]="register.php";

$_file['member']['ewallet_transfer']='e_transfer.php';

$_file['member']['eswallet_transfer']='es_transfer.php';

$_file['member']['commission']='commission.php';

$_file['member']['sales_list']='sales_list.php';

$_file['member']['sales_summary']='sales_summary.php';

$_file['member']['add_edit_sales']='sales_ae.php';

$_file['member']['withdrawal']='withdrawal.php';

$_file['member']['withdrawal_setting']='withdraw_setting.php';

$_file['member']['purchase_history']='history_purchase.php';

$_file['member']['withdrawal_history']='history_withdrawal.php';

$_file['member']['ewallet_history']='history_ewallet.php';

$_file['member']['eswallet_history']='history_eswallet.php';

$_file['member']['swallet_history']='history_swallet.php';

$_file['member']['cwallet_history']='history_cwallet.php';

$_file['member']['mwallet_history']='history_mwallet.php';

$_file['member']['cwallet_withdrawal']='withdraw_cwallet.php';

$_file['member']['cwallet_withdrawal_history']='withdraw_history_cwallet.php';

$_file['member']['swallet_history']='history_swallet.php';

$_file['member']['swallet_convert']='convert_swallet.php';

$_file['member']['owallet_history']='history_owallet.php';

$_file['member']['e_to_es']='e_to_es.php';

$_file['member']['e_to_c']='e_to_c.php';

$_file['member']['support']='messaging.php';

$_file['member']['compensation']='compensation.php';

$_file["member"]['maintain_topup']='maintain_topup.php';

$_file['member']['stockist_plan']='stockist_plan.php';

$_file['member']['stockist_plan_sales']='stockist_plan_sales.php';

$_file['member']['stockist_access']='stockist_access.php';

$_file['member']['login_stockist']='login_stockist.php';

$_file['member']['select_stockist']='select_stockist.php';

$_file['member']['view_stockist_sales']='view_stockist_sales.php';

$_file['member']['view_stockist_list']='view_stockist_list.php';

$_file['member']['edit_stockist_code']='edit_stockist_code.php';

$_file['member']['add_stockist_sales']='add_stockist_sales.php';

$_file['member']['edit_stockist_access']='edit_stockist_access.php';

$_file['member']['auto_matrix']='auto_matrix.php';

$_file['member']['cash_flow_program']='cash_flow_program.php';

$_file['member']['purchase_share']='purchase_share.php';

$_file['member']['sell_share']='sell_share.php';

$_file['member']['upload_file']='upload_file.php';

$_file['member']['company_bank_info']='company_bank_info.php';

$_file['member']['logout']='logout.php';



$_file["public"]["index"]="";

$_file["public"]["company"]="company.php";

$_file["public"]["overview"]="overview.php";

$_file["public"]["mission"]="mission.php";

$_file["public"]["director"]="director.php";

$_file["public"]["managementteam"]="managementteam.php";

$_file["public"]["products"]="products.php";

$_file["public"]["products_health"]="products_health.php";

$_file["public"]["products_3dtv"]="products_3dtv.php";

$_file["public"]["products_waterfilter"]="products_waterfilter.php";

$_file["public"]["products_beautybar"]="products_beautybar.php";

$_file["public"]["products_beautybar2"]="products_beautybar2.php";

$_file["public"]["products_hair"]="products_hair.php";

$_file["public"]["events"]="events.php";

$_file["public"]["news"]="news.php";

$_file["public"]["news_short"]="news_short.php";

$_file["public"]["opportunity"]="opportunity.php";

$_file["public"]["faq"]="faq.php";

$_file["public"]["coo"]="coo.php";

$_file["public"]["resources"]="resources.php";

$_file["public"]["compensation"]="compensation.php";

$_file["public"]["register"]="register.php";

$_file["public"]["login"]="login.php";

$_file["public"]["forgot_password"]="forgot_password.php";

$_file["public"]["terms"]="terms.php";

$_file["public"]["sitemap"]="sitemap.php";

$_file["public"]["contact"]="contact.php";



$vars["file"]=$_file;



//css styles




$_css["msg_style"]="style='font-family:verdana; font-size:11px;'";



$_css["table_style"]="style='border-collapse:collapse;font-family:verdana;font-size:11px;'";



$_css["td_style"]="style='border:1px solid black; padding: 3px;'";



$_css["td_title_style"]="style='height:30px; padding: 3px; font-weight:bold;'";



$_css["td_right_style"]="style='border:1px solid black; padding: 3px; text-align:right;'";



$_css["td_center_style"]="style='border:1px solid black; padding: 3px; text-align:center;'";



$_css["th_style"]="style='border:1px solid black; background: #888; padding: 3px; font-weight:bold;'";



$_css["th_right_style"]="style='border:1px solid black; background: #888; padding: 3px; font-weight:bold; text-align:right;'";







$vars["css"]=$_css;







//reference no min digit



$_refno_min_digit = 8;



$vars['refno_min_digit'] = $_refno_min_digit;







//genealogy spacing tweak



$_base_info_width = 290;



$_char_width = 9;







$vars['gen_tweak']['base_info_width'] = $_base_info_width;



$vars['gen_tweak']['char_width'] = $_char_width;







$_company_id = "-1";



$vars['company_id'] = $_company_id;






//packages



require_once('e.package.php');



foreach($_package as $_refno => $_detail){



	$_r_package[] = $_refno;

	

	$_r_package_d[$_refno] = $_detail['title']." ".$vars['currency'].number_format($_detail['price'], 2)." (".number_format($_detail['bv'], 2)."BV)";



}

//$vars['product']=$_product;

//$vars['r_product']=$_r_product;

//$vars['r_product_detail']=$_r_product_d;

$vars['package']=$_package;

$vars['r_package']=$_r_package;

$vars['r_package_detail']=$_r_package_d;

//$vars['active_package']=$_active_package;

//$vars['r_active_package']=$_r_active_package;

//$vars['r_active_package_detail']=$_r_active_package_d;





//plan A rank

$_rank_index_a['5.0'] = 1.0;
$_rank_index_a['10.0'] = 2.0;
$_rank_index_a['100.0'] = 5.0;
$_rank_index_a['300.0'] = 10.0;


$_rank_index_a_d['0.0'] = 'Inactive';
$_rank_index_a_d['5.0'] = 'Fast Start';
$_rank_index_a_d['10.0'] = 'Regular';
$_rank_index_a_d['100.0'] = 'VIP';
$_rank_index_a_d['300.0'] = 'VVIP';

$_rank_index_a_price['5.0'] = 5000;
$_rank_index_a_price['10.0'] = 10000;
$_rank_index_a_price['100.0'] = 100000;
$_rank_index_a_price['300.0'] = 300000;

$_rank_index_a_bv['5.0'] = 2500;
$_rank_index_a_bv['10.0'] = 5000;
$_rank_index_a_bv['100.0'] = 50000;
$_rank_index_a_bv['300.0'] = 150000;

$_rank_index_a_share['5.0'] = 5000;
$_rank_index_a_share['10.0'] = 10000;
$_rank_index_a_share['100.0'] = 100000;
$_rank_index_a_share['300.0'] = 300000;

$vars['rank_index_a'] = $_rank_index_a;
$vars['rank_index_a_d'] = $_rank_index_a_d;
$vars['rank_index_a_price'] = $_rank_index_a_price;
$vars['rank_index_a_bv'] = $_rank_index_a_bv;
$vars['rank_index_a_share'] = $_rank_index_a_share;



//commissions



$_matrix_wide=5;







$_product_ref_comm=10;//percent







$_min_maintain = 0; //must have this personal sales volume to enjoy the commission



$_max_maintain = 0; //maximum maintenance to deduct for a month



$_max_mall_maintain = 0; //maximum mall maintenance to deduct for a month



$_maintain_rate = 0; //rate for auto maintain amount to bv



$_my_min_maintain = 0; //must have this personal sales volume to enjoy the commission



$_my_max_maintain = 0; //maximum maintenance to deduct for a month



$_my_max_mall_maintain = 0; //maximum mall maintenance to deduct for a month



$_my_maintain_rate = 0; //rate for auto maintain amount to bv



$_th_min_maintain = 0; //must have this personal sales volume to enjoy the commission



$_th_max_maintain = 0; //maximum maintenance to deduct for a month



$_th_max_mall_maintain = 0; //maximum mall maintenance to deduct for a month



$_th_maintain_rate = 0; //rate for auto maintain amount to bv



$_jp_min_maintain = 0; //must have this personal sales volume to enjoy the commission



$_jp_max_maintain = 0; //maximum maintenance to deduct for a month



$_jp_max_mall_maintain = 0; //maximum mall maintenance to deduct for a month



$_jp_maintain_rate = 0; //rate for auto maintain amount to bv



$_pairing_percent_per_pair = 10;



$_max_pair_per_day = 10;



$_pairing_volume_type[0] = 6000;



$_pairing_volume_type[1] = 5600;



$_pairing_volume_type[2] = 4800;



$_pairing_volume_type[3] = 3200;



$_pairing_volume_type[4] = 2800;



$_pairing_volume_type[5] = 2400;



$_pairing_volume_type[6] = 1600;



$_pairing_volume_type[7] = 1200;



$_pairing_volume_type[8] = 800;



$_pairing_volume_type[9] = 400;



$_matching_bonus[1]['percent'] = 10; //[level] = commission percentage



$_matching_bonus[1]['sponsor'] = 1; //[level] = how many direct sponsor downline the member need to have to qualify for this level of matching



$_matching_bonus[1]['downline'] = 0; //[level] = how many placement downline the member need to have to qualify for this level of matching



$_matching_bonus[2]['percent'] = 10;



$_matching_bonus[2]['sponsor'] = 1;



$_matching_bonus[2]['downline'] = 0;



$_matching_bonus[3]['percent'] = 10;



$_matching_bonus[3]['sponsor'] = 1;



$_matching_bonus[3]['downline'] = 0;



$_matching_bonus[4]['percent'] = 10;



$_matching_bonus[4]['sponsor'] = 3;



$_matching_bonus[4]['downline'] = 0;



$_matching_bonus[5]['percent'] = 10;



$_matching_bonus[5]['sponsor'] = 3;



$_matching_bonus[5]['downline'] = 0;



$_matching_bonus[6]['percent'] = 10;



$_matching_bonus[6]['sponsor'] = 5;



$_matching_bonus[6]['downline'] = 0;



$_matching_bonus[7]['percent'] = 10;



$_matching_bonus[7]['sponsor'] = 5;



$_matching_bonus[7]['downline'] = 0;







$_pool[1]['volume'] = 200000;



$_pool[1]['min_leg'] = 2;



$_pool[1]['min_leg_volume'] = 50000;



$_pool[1]['percent'] = 1;



$_pool[2]['volume'] = 500000;



$_pool[2]['min_leg'] = 3;



$_pool[2]['min_leg_volume'] = 100000;



$_pool[2]['percent'] = 1;



$_pool[3]['volume'] = 1000000;



$_pool[3]['min_leg'] = 5;



$_pool[3]['min_leg_volume'] = 100000;



$_pool[3]['percent'] = 1;



$_pool_auto_qualifiers = array(1);







$_unilevel[1]['percent'] = 10; //[level] = commission percentage



$_unilevel[1]['downline'] = 1; //[level] = how many placement downline the member need to have to qualify for this level of matching



$_unilevel[1]['sponsor'] = 1; //[level] = how many direct sponsor downline the member need to have to qualify for this level of matching



$_unilevel[2]['percent'] = 10;



$_unilevel[2]['downline'] = 1;



$_unilevel[2]['sponsor'] = 1;



$_unilevel[3]['percent'] = 10;



$_unilevel[3]['downline'] = 1;



$_unilevel[3]['sponsor'] = 1;



$_unilevel[4]['percent'] = 10;



$_unilevel[4]['downline'] = 3;



$_unilevel[4]['sponsor'] = 3;



$_unilevel[5]['percent'] = 10;



$_unilevel[5]['downline'] = 3;



$_unilevel[5]['sponsor'] = 3;



$_unilevel[6]['percent'] = 10;



$_unilevel[6]['downline'] = 5;



$_unilevel[6]['sponsor'] = 5;



$_unilevel[7]['percent'] = 10;



$_unilevel[7]['downline'] = 5;



$_unilevel[7]['sponsor'] = 5;







$_stockist_comm_percent = 10;







$_maintenance_percent = 10;







$vars['matrix_wide']=$_matrix_wide;



$vars['product_ref_comm']=$_product_ref_comm;



$vars['min_maintain']=$_min_maintain;



$vars['max_maintain']=$_max_maintain;



$vars['max_mall_maintain']=$_max_mall_maintain;



$vars['maintain_rate']=$_maintain_rate;



$vars['my_min_maintain']=$_my_min_maintain;



$vars['my_max_maintain']=$_my_max_maintain;



$vars['my_max_mall_maintain']=$_my_max_mall_maintain;



$vars['my_maintain_rate']=$_my_maintain_rate;



$vars['th_min_maintain']=$_th_min_maintain;



$vars['th_max_maintain']=$_th_max_maintain;



$vars['th_max_mall_maintain']=$_th_max_mall_maintain;



$vars['th_maintain_rate']=$_th_maintain_rate;



$vars['jp_min_maintain']=$_jp_min_maintain;



$vars['jp_max_maintain']=$_jp_max_maintain;



$vars['jp_max_mall_maintain']=$_jp_max_mall_maintain;



$vars['jp_maintain_rate']=$_jp_maintain_rate;



$vars['pairing_percent_per_pair']=$_pairing_percent_per_pair;



$vars['max_pair_per_day']=$_max_pair_per_day;



$vars['pairing_volume_type']=$_pairing_volume_type;



$vars['matching_bonus']=$_matching_bonus;



$vars['pool']=$_pool;



$vars['pool_auto_qualifiers']=$_pool_auto_qualifiers;



$vars['unilevel']=$_unilevel;



$vars['stockist_comm_percent']=$_stockist_comm_percent;



$vars['maintenance_percent']=$_maintenance_percent;



$vars['projected_payout_percent'] = 55;







//#####database names



$_prefix=$vars["dbi"]["prefix"];

$db = new StdClass;

$db->admin = $_prefix.'admin';

$db->users = $_prefix.'users';

$db->product_category = $_prefix.'product_category';

$db->products = $_prefix.'products';

$db->prod_qty_record = $_prefix.'prod_qty_record';

$db->stck_prod_qty_record = $_prefix.'stck_prod_qty_record';

$db->package_detail = $_prefix.'package_detail';

$db->purchase = $_prefix.'purchase';

$db->purchase_detail = $_prefix.'purchase_detail';

$db->purchase_calc = $_prefix.'purchase_calc';

$db->purchase_fig = $_prefix.'purchase_fig';

$db->stockist_sales = $_prefix.'stockist_sales';

$db->stockist_sales_detail = $_prefix.'stockist_sales_detail';

$db->stockist_inventory = $_prefix.'stockist_inventory';

$db->add_stockist_sales = $_prefix.'add_stockist_sales';

$db->stockist_access = $_prefix.'stockist_access';

$db->member_cf = $_prefix.'member_cf';

$db->member_cf_calc = $_prefix.'member_cf_calc';

$db->member_comm = $_prefix.'member_comm';

$db->member_comm_sum = $_prefix.'member_comm_sum';

$db->member_maintain = $_prefix.'member_maintain';

$db->member_cwallet_record = $_prefix.'member_cwallet_record';

$db->member_cwallet_transfer = $_prefix.'member_cwallet_transfer';

$db->member_ewallet_record = $_prefix.'member_ewallet_record';

$db->member_ewallet_transfer = $_prefix.'member_ewallet_transfer';

$db->member_eswallet_transfer = $_prefix.'member_eswallet_transfer';

$db->member_eswallet_record = $_prefix.'member_eswallet_record';

$db->member_swallet_record = $_prefix.'member_swallet_record';

$db->member_mwallet_record = $_prefix.'member_mwallet_record';

$db->member_owallet_record = $_prefix.'member_owallet_record';

$db->member_withdraw = $_prefix.'member_withdraw';

$db->member_cwithdraw = $_prefix.'member_cwithdraw';

$db->pool_cf = $_prefix.'pool_cf';

$db->messaging = $_prefix.'messaging';

$db->cron = $_prefix.'cron';

$db->activity_log = $_prefix.'activity_log';

$db->settings = $_prefix.'settings';

$db->ad_type = $_prefix.'ad_type';

$db->banner_ad = $_prefix.'banner_ad';

$db->banner_ad_stat = $_prefix.'banner_ad_stat';

$db->sales_bv = $_prefix.'sales_bv';

$db->share = $_prefix.'share';

$db->sponsor_ledger = $_prefix.'sponsor_ledger';

$db->sponsor_account = $_prefix.'sponsor_account';

$db->matrix_first = $_prefix.'matrix_first';

$db->matrix_second = $_prefix.'matrix_second';

$db->matrix_third = $_prefix.'matrix_third';

$db->matrix_fourth = $_prefix.'matrix_fourth';

$db->matrix_fifth = $_prefix.'matrix_fifth';

$db->matrix_sixth = $_prefix.'matrix_sixth';

$db->upload = $_prefix.'upload';

$db->cashflow = $_prefix.'cashflow';

$db->bank_transaction = $_prefix.'bank_transaction';

$db->login = $_prefix.'login';

$db->share = $_prefix.'share';

$db->share_trading = $_prefix.'share_trading';

$db->share_trading_ledger = $_prefix.'share_trading_ledger';

$db->ep = $_prefix.'ep';


$vars["db"]=$db;







//#####database paramaters & restrictions



/*



format:







datatype # - datatype can be 'str' for string or 'dec' for decimal



min length (str) / decimal value (dec) #



max length (str) /decimal point (dec) #



optional (o) / mandatory (m) #



field title in english #



min value for decimal type # - operator can be used >, >=, <, <=, and 'na', which means no min / max



max value for decimal type







e.g.



str#2#200#m#Title -> string type, 2 <= length <= 200, mandatory, with field title = title, english title = Title



dec#10#2#o#Number#0#100000 -> decimal type, with length (10,2), optional, with field title = number, english title = Number, min value is 0, max value is 100,000



*/







$dbr["admin"]["name"]="str#3#255#m#Name";



$dbr["admin"]["login"]="str#3#32#m#Login";



$dbr["admin"]["password"]="str#2#32#m#Level 1 Password";



$dbr["admin"]["email"]="str#5#100#m#Email";







$dbr["users"]["id"]="dec#19#0#m#User ID#1#9223372036854775807";



$dbr["users"]["ref"]="dec#19#0#m#Sponsor Member ID#0#9223372036854775807";



$dbr["users"]["matrix_upline"]="dec#19#0#m#Placement Member ID#9223372036854775807";



$dbr["users"]["matrix_position"]="dec#10#0#o#Placement Position#1#4294967295";



$dbr["users"]["acc_type"]="str#0#1#o#Account Type";



$dbr["users"]["signup_code"]="str#10#13#m#Sign Up Code";



$dbr["users"]["name"]="str#1#255#m#Name";



$dbr["users"]["username"]="str#2#32#m#Username";



$dbr["users"]["password"]="str#3#32#m#Level 1 Password";



$dbr["users"]["password2"]="str#3#32#m#Level 2 Password";



$dbr["users"]["email"]="str#0#100#m#Email";



$dbr["users"]["ic"]="str#1#50#o#Passport / IC No.";



$dbr["users"]["gender"]="str#0#1#o#Gender";



$dbr["users"]["address"]="str#1#65536#m#Address";



$dbr["users"]["country"]="str#1#3#m#Country";



$dbr["users"]["homeno"]="str#0#20#o#Home Phone";



$dbr["users"]["mobileno"]="str#1#20#m#Mobile Phone";



$dbr["users"]["dob"]="str#0#20#o#Date of Birth";



$dbr["users"]["bank_name"]="str#0#100#o#Bank Name";



$dbr["users"]["bank_acc_no"]="str#0#30#o#Bank Account No.";



$dbr["users"]["bank_swiftcode"]="str#0#100#o#Bank Swift Code";



$dbr["users"]["bank_branch"]="str#0#100#o#Bank Branch";



$dbr["users"]["payee_name"]="str#0#100#o#Payee Name";



$dbr["users"]["bis_reg"]="str#1#20#m#Business Regisration No.";



$dbr["users"]["person_in_charge"]="str#1#100#m#Person in Charge";



$dbr["users"]["occupation"]="str#0#100#o#Occupation";



$dbr["users"]["remark"]="str#0#65536#o#Remark";



$dbr["users"]["cdate"]="str#0#19#o#Join Date";



$dbr["users"]["status"]="str#1#20#m#Status";



$dbr["users"]["stockist_uid"]="str#1#20#m#Selected By Member ID";



$dbr["users"]["stockist_code"]="str#1#20#m#Stockist Code";



$dbr["users2"]["id"]="dec#19#0#m#User ID#1#9223372036854775807";



$dbr["users2"]["ref"]="dec#19#0#m#Sponsor Player ID#0#9223372036854775807";



$dbr["users2"]["matrix_upline"]="dec#19#0#m#Parent Player ID#9223372036854775807";



$dbr["users2"]["matrix_position"]="dec#10#0#o#Upline Position#1#4294967295";



$dbr["users2"]["signup_code"]="str#11#13#m#Sign Up Code";



$dbr["product_category"]["title"]="str#1#255#m#Category Title";







$dbr["products"]["catid"]="dec#19#0#o#Category ID#0#9223372036854775807";



$dbr["products"]["refno"]="str#1#20#m#Reference Number";



$dbr["products"]["prod_type"]="str#0#1#o#Product Type";



$dbr["products"]["title"]="str#1#255#m#Product Title";



$dbr["products"]["bv_fix"]="str#0#1#o#BV Fix";



$dbr["products"]["bv"]="dec#15#2#m#Product BV#>=0#na";



$dbr["products"]["dp_fix"]="str#0#1#o#Member Price Fix";



$dbr["products"]["dp"]="dec#15#2#m#Member Price#0#na";



$dbr["products"]["rp_fix"]="str#0#1#o#Retail Price Fix";



$dbr["products"]["rp"]="dec#15#2#m#Retail Price#0#na";



$dbr["products"]["total_bv"]="dec#15#2#m#Total BV#0#na";



$dbr["products"]["total_dp"]="dec#15#2#m#Total Member Price#0#na";



$dbr["products"]["total_rp"]="dec#15#2#m#Total Customer Price#0#na";



$dbr["products"]["qty_type"]="str#0#1#o#Quantity Type";



$dbr["products"]["qty"]="dec#8#0#m#Quantity#0#8388607";



$dbr["products"]["image_file"]="str#0#255#o#Image File";



$dbr["products"]["status"]="str#0#20#o#Status";



$dbr["products"]["remark"]="str#0#65536#o#Remark";



$dbr["products"]["descr"]="str#0#65536#o#Description";







$dbr["package_detail"]["qty"]="dec#5#0#m#Quantity#1#65535";







$dbr["purchase"]["nm_name"]="str#0#100#m#Non-member Name";



$dbr["purchase"]["nm_contact"]="str#0#100#o#Non-member Contact";



$dbr["purchase"]["uid"]="dec#19#0#m#Member ID#0#9223372036854775807";



$dbr["purchase"]["refno"]="str#0#22#o#Sales ID";



$dbr["purchase"]["stockist_sale"]="str#0#1#o#Stockist Sale";



$dbr["purchase"]["sid"]="dec#19#0#o#Stockist ID#0#9223372036854775807";



$dbr["purchase"]["collected_date"]="str#0#19#o#Collected Date";



$dbr["purchase"]["delivery_cost"]="dec#15#2#m#Delivery Cost#>=0#na";



$dbr["purchase"]["cdate"]="str#0#19#o#Commission Calculation Date";



$dbr["purchase"]["edate"]="str#0#19#o#Sales Date";



$dbr["purchase"]["qty"]="dec#5#0#m#Quantity#1#10000";



$dbr["purchase"]["remark"]="str#0#65536#o#Remark";







$dbr["purchase_detail"]["qty"]="dec#8#0#m#Quantity#1#16777215";







$dbr["stockist_sales"]["sid"]="dec#19#0#m#Stockist ID#0#9223372036854775807";



$dbr["stockist_sales"]["refno"]="str#0#22#o#Sales ID";



$dbr["stockist_sales"]["stockist_sale"]="str#0#1#o#Purchase from Another Stockist";



$dbr["stockist_sales"]["ssid"]="dec#19#0#o#Stockist ID#0#9223372036854775807";



$dbr["stockist_sales"]["collected_date"]="str#0#19#o#Collected Date";



$dbr["stockist_sales"]["delivery_cost"]="dec#15#2#m#Delivery Cost#>=0#na";



$dbr["stockist_sales"]["cdate"]="str#0#19#o#Sales Date";



$dbr["stockist_sales"]["remark"]="str#0#65536#o#Remark";







$dbr["stockist_sales_detail"]["qty"]="dec#8#0#m#Quantity#1#16777215";







$dbr["member_ewallet_transfer"]["to_uid"]="dec#19#0#m#Transferee ID#1#9223372036854775807";



$dbr["member_ewallet_transfer"]["amount"]="dec#15#2#m#Transfer Amount#>0#na";



$dbr["member_ewallet_transfer"]["remark"]="str#0#65536#o#Remark";







$dbr["member_eswallet_transfer"]["to_uid"]="dec#19#0#m#Transferee ID#1#9223372036854775807";



$dbr["member_eswallet_transfer"]["amount"]="dec#15#2#m#Transfer Amount#>0#na";



$dbr["member_eswallet_transfer"]["remark"]="str#0#65536#o#Remark";







$dbr["member_maintain"]["amount"]="dec#6#2#m#Topup Amount#>0#1000";



$dbr["member_convert"]["amount"]="dec#15#2#m#Convert Amount#>0#na";



$dbr["member_withdraw"]["uid"]="dec#19#0#m#User ID#1#9223372036854775807";



$dbr["member_withdraw"]["withdraw_amount"]="dec#15#2#m#Withdrawal Amount#>0#na";



$dbr["member_withdraw"]["amount"]="dec#15#2#m#Deduct Amount#>0#na";



$dbr["member_withdraw"]["acc_name"]="str#1#100#m#Bank Name";



$dbr["member_withdraw"]["acc_payee_name"]="str#1#100#m#Payee Name";



$dbr["member_withdraw"]["acc_no"]="str#1#30#m#Payee Account No.";



$dbr["member_withdraw"]["acc_swiftcode"]="str#1#100#m#Bank Swift Code";



$dbr["member_withdraw"]["acc_branch"]="str#1#100#m#Bank Branch";



$dbr["member_withdraw"]["payment_date"]="str#0#19#o#Payment Date";



$dbr["member_withdraw"]["payment_remark"]="str#0#65536#o#Payment Reference";



$dbr["member_withdraw"]["remark"]="str#0#65536#o#Remark";



$dbr["bank_transaction"]["bdate"]="str#0#19#o#Bank In Date";



$dbr["bank_transaction"]["code"]="str#0#65536#o#Member Name / Code";



$dbr["bank_transaction"]["amount"]="dec#15#2#m#Amount#>0#na";



$dbr["bank_transaction"]["remark1"]="str#0#65536#o#Bank In Remark";



$dbr["messaging"]["subject"]="str#1#255#m#Subject";



$dbr["messaging"]["message"]="str#1#65536#m#Message";





$dbr["add_stockist_sales"]["stockist_code"]="str#1#255#m#Stockist Code";



$dbr["add_stockist_sales"]["bv"]="dec#15#2#m#Total BV#>0#na";





$dbr["edit_stockist_access"]["uid"]="dec#19#0#m#Member ID#1#9223372036854775807";



$dbr["edit_stockist_access"]["password"]="str#1#50#o#Password";







$vars["dbr"]=$dbr;



?>